<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>TCR</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />

</head>
<body>

<div id="container">
<div id="header">
<div class="intro">
<h1><a href="/">TCR</a></h1>
<div class="description">Tudou Coverage Report System</div>
</div>
<div class="nav">
<ul class="clearfix">
	<li><s:a action="">首页</s:a></li>
	<li><s:a action="addprojform">新建项目</s:a></li>
	<li><s:a action="projmgt">项目管理</s:a></li>
	<li><s:a action="adduserform">新建用户</s:a></li>
	<li><s:a action="usermgt">用户管理</s:a></li>
</ul>
<div class="login"><span class="name">管理员</span> |<s:a
	action="logout">注销</s:a></div>
</div>
</div>

<div id="content">
<h3 class="title">新建用户</h3>
<s:form cssClass="form-user" action="adduser" method="post">
	<s:fielderror></s:fielderror>
	<table>
		<tbody>
			<tr>
				<td>
				<p><s:textfield name="u_name" label="姓名" cssClass="f-text"></s:textfield></p>
				</td>
				<td class="hint">用于登录时显示的名称</td>
			</tr>
			<tr>
				<td>
				<p><s:textfield name="u_mail" label="邮箱" cssClass="f-text"></s:textfield></p>
				</td>
				<td class="hint">用户使用邮箱登录</td>
			</tr>
			<tr>
				<td>
				<p><s:password name="u_pass" label="密码" cssClass="f-text"></s:password></p>
				</td>
				<td class="hint">最少 6 个字符(阿拉伯数字和英文字母)</td>
			</tr>
			<tr>
				<td><s:select label="类型" name="u_type" headerKey="-1"
					headerValue="选择类型" list="#{0:'测试', 1:'开发'}" value="0"
					required="true" /></td>
				<td class="hint">选择工作分类</td>
			</tr>
			<tr>
				<td><s:select label="允许上传" name="u_upload" headerKey="-1"
					headerValue="选择类型" list="#{0:'观察者', 1:'上传者'}" value="1"
					required="true" /></td>
				<td class="hint">选择是否允许上传</td>
			</tr>
			<tr>
				<td></td>
				<td><s:submit value="创建" align="right" cssClass="f-submit" /></td>
			</tr>
		</tbody>
	</table>

</s:form></div>
</div>
</body>

</html>